// components/ad-banner/index.ts
Component({
  properties: {
    adUnitId: {
      type: String,
      value: 'adunit-3e3fd713d42f094c' // 默认 Banner 广告位
    },
    adTheme: {
      type: String,
      value: 'white' // 可选值：white 或 black
    }
  },
  methods: {
    adLoad() {
      this.triggerEvent('adload')
    },
    adError(e) {
      this.triggerEvent('aderror', e.detail)
    },
    adClose() {
      this.triggerEvent('adclose')
    }
  }
})